.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
.TH TS2ES "1" "November 2008" "ts2es 1.11" "User Commands"
.SH NAME
ts2es \- extract a single (elementary) stream from a TS (or PS)
.SH SYNOPSIS
.B ts2es
[\fIswitches\fR] \fI<infile>\fR \fI<outfile>\fR
.SH DESCRIPTION
.IP
TS tools version 1.11, ts2es built Nov 11 2008 17:15:45
.IP
Extract a single (elementary) program stream from a Transport Stream
(or Program Stream).
.SS "Files:"
.TP
<infile>
is an H.222 Transport Stream file (but see \fB\-stdin\fR and \fB\-pes\fR)
.IP
<outfile> is a single elementary stream file (but see \fB\-stdout\fR)
.SS "Which stream to extract:"
.TP
\fB\-pid\fR <pid>
Output data for the stream with the given
<pid>. Use \fB\-pid\fR 0x<pid> to specify a hex value
.TP
\fB\-video\fR
Output data for the (first) video stream
named in the (first) PMT. This is the default.
.TP
\fB\-audio\fR
Output data for the (first) audio stream
named in the (first) PMT
.SS "General switches:"
.TP
\fB\-stdin\fR
Input from standard input, instead of a file
.TP
\fB\-stdout\fR
Output to standard output, instead of a file
Forces \fB\-quiet\fR.
.TP
\fB\-verbose\fR, \fB\-v\fR
Output informational/diagnostic messages
.TP
\fB\-quiet\fR, \fB\-q\fR
Only output error messages
.TP
\fB\-max\fR <n>, \fB\-m\fR <n>
Maximum number of TS packets to read
.TP
\fB\-pes\fR, \fB\-ps\fR
Use the PES interface to read ES units from
the input file. This allows PS data to be read
(there is no point in using this for TS data).
Does not support \fB\-pid\fR, \fB\-stdin\fR or \fB\-stdout\fR.
.IP
TS tools version 1.11, ts2es built Nov 11 2008 17:15:45
.IP
Extract a single (elementary) program stream from a Transport Stream
(or Program Stream).
.SS "Files:"
.TP
<infile>
is an H.222 Transport Stream file (but see \fB\-stdin\fR and \fB\-pes\fR)
.IP
<outfile> is a single elementary stream file (but see \fB\-stdout\fR)
.SS "Which stream to extract:"
.TP
\fB\-pid\fR <pid>
Output data for the stream with the given
<pid>. Use \fB\-pid\fR 0x<pid> to specify a hex value
.TP
\fB\-video\fR
Output data for the (first) video stream
named in the (first) PMT. This is the default.
.TP
\fB\-audio\fR
Output data for the (first) audio stream
named in the (first) PMT
.SS "General switches:"
.TP
\fB\-stdin\fR
Input from standard input, instead of a file
.TP
\fB\-stdout\fR
Output to standard output, instead of a file
Forces \fB\-quiet\fR.
.TP
\fB\-verbose\fR, \fB\-v\fR
Output informational/diagnostic messages
.TP
\fB\-quiet\fR, \fB\-q\fR
Only output error messages
.TP
\fB\-max\fR <n>, \fB\-m\fR <n>
Maximum number of TS packets to read
.TP
\fB\-pes\fR, \fB\-ps\fR
Use the PES interface to read ES units from
the input file. This allows PS data to be read
(there is no point in using this for TS data).
Does not support \fB\-pid\fR, \fB\-stdin\fR or \fB\-stdout\fR.
.SH "SEE ALSO"
The full documentation for
.B ts2es
is maintained as a Texinfo manual.
Please check http://tstools.berlios.de for more information.


